import newRequest from '@/utils/newRequest'
import { mergeParams } from '@/utils'

// 关闭主表
export function closeMain(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doClose',
    method: 'post',
    data
  })
}

// 整改项目
export function doQueryAll(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doQueryAll',
    method: 'post',
    data
  })
}

// 去整改
export function toCorrection(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doUpdate',
    method: 'post',
    data
  })
}

// 分页质量考核评分-待复核
export function doQueryWaitingApprove(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doQueryWaitingApprove',
    method: 'post',
    data
  })
}
